package com.rainy.cloud.core.configuration;

import com.rainy.cloud.core.result.ResultHandler;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.context.annotation.Configuration;

@Aspect
@Configuration
public class MessageConfiguration extends ResultHandler {

    @Around("(execution(* com.rainy..controller.*.*(..))||execution(* com.rainy..action.*.*(..))) && (@annotation(org.springframework.web.bind.annotation.RequestMapping)||@annotation(org.springframework.web.bind.annotation.PostMapping)||@annotation(org.springframework.web.bind.annotation.GetMapping))")
    public Object getResultVo(ProceedingJoinPoint joinPoint) throws Throwable {
        return super.getResultVo(joinPoint);
    }

}
